Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jail validators for inactivity #2174

Merged
merged 14 commits into from
Nov 21, 2023
Merged

Conversation

grarco
Copy link
Collaborator

@grarco grarco commented Nov 14, 2023

Describe your changes

Closes #1360.

Implements a jailing mechanism for inactive consensus validators.

Indicate on which release or other PRs this topic is based on

v0.26.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@grarco grarco changed the title Jain validators for inactivity Jail validators for inactivity Nov 14, 2023
@grarco grarco requested a review from brentstone November 15, 2023 16:08
@grarco grarco marked this pull request as ready for review November 15, 2023 16:08
@brentstone brentstone force-pushed the brent+grarco/jail-inactive-validator branch from 15a1787 to 5dd39cd Compare November 17, 2023 20:29
@brentstone brentstone mentioned this pull request Nov 17, 2023
@brentstone brentstone force-pushed the brent+grarco/jail-inactive-validator branch from 5dd39cd to 232ca99 Compare November 17, 2023 20:39
brentstone added a commit that referenced this pull request Nov 17, 2023
* brent+grarco/jail-inactive-validator:
  finalize_block: unit test
  more refactors to liveness unjailing protocol and data
  refactors
  Improves liveness jail test
  Updates masp proofs
  Jails validators up to the pipeline len
  Clippy fix
  Adds test and fixes bug with multi-jailing
  Turns liveness const into pos params
  Fixes underflow bug in validator inactivity jailing
  Deactivate validator when jailing for inactivity
  Refactors validator activity data
  Jail validators for inactivity
  Adds liveness data for conensus validators
Copy link
Collaborator

@brentstone brentstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made some changes and added a test, thx @grarco for implementing all of this

brentstone added a commit that referenced this pull request Nov 17, 2023
* brent+grarco/jail-inactive-validator:
  finalize_block: unit test
  more refactors to liveness unjailing protocol and data
  refactors
  Improves liveness jail test
  Updates masp proofs
  Jails validators up to the pipeline len
  Clippy fix
  Adds test and fixes bug with multi-jailing
  Turns liveness const into pos params
  Fixes underflow bug in validator inactivity jailing
  Deactivate validator when jailing for inactivity
  Refactors validator activity data
  Jail validators for inactivity
  Adds liveness data for conensus validators
@adrianbrink adrianbrink mentioned this pull request Nov 18, 2023
2 tasks
Copy link
Collaborator

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The basic logic looks alright to me; @tzemanovic and @brentstone should review the changes to the PoS code.

@tzemanovic tzemanovic merged commit e290672 into main Nov 21, 2023
12 of 14 checks passed
@tzemanovic tzemanovic deleted the brent+grarco/jail-inactive-validator branch November 21, 2023 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unbond/Deactivate inactive validators
4 participants